/*
 * Store info related to an administrator
 */

package com.spartancoder.accommodation.beans;

import java.sql.ResultSet;
import java.sql.SQLException;

/**
 *
 * @author andrei
 */
public class AdministratorBean {

	private int administratorId;
	private String user;

	public void fill( ResultSet rs ) throws SQLException {
		setAdministratorId(rs.getInt("administrator_id"));
		setUser(rs.getString("user"));
	}

	public int getAdministratorId() {
		return administratorId;
	}

	public void setAdministratorId(int administratorId) {
		this.administratorId = administratorId;
	}

	public String getUser() {
		return user;
	}

	public void setUser(String user) {
		this.user = user;
	}
	
}
